package com.aliyun.messagemgt.common.constants;

/**
 * 微信常量类
 * @author byp
 * @date 2020/4/29
 */
public class WeChatConstant {

    /** access token保存到redis中的key */
    public static final String WECHAT_ACCESS_TOKEN_REDIS_KEY = "WeChat_access_token";


    private String formatWeChatErrorCode(int errorCode){
        String errorMsg = "";
        switch (errorCode){
            case 40037:
                errorMsg = "模板id不正确";
                break;
            case 41028:
                errorMsg = "weapp_template_msg.form_id过期或者不正确";
                break;
            case 41029:
                errorMsg = "weapp_template_msg.form_id已被使用";
                break;
            case 41030:
                errorMsg = "weapp_template_msg.page不正确";
                break;
            case 45009:
                errorMsg = "接口调用超过限额";
                break;
            case 40003:
                errorMsg = "touser不是正确的openid";
                break;
            case 40013:
                errorMsg = "appid不正确，或者不符合绑定关系要求";
                break;
            default:
                break;
        }

        return errorMsg;
    }
}
